package com.cryptoneedle.center.mapping.controller;

import com.bubbles.engine.common.core.result.Result;
import com.cryptoneedle.center.mapping.service.MappingService;
import com.cryptoneedle.center.mapping.vo.MappingTableConfigVo;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>description: Standard 控制器 </p>
 *
 * @author CryptoNeedle
 * @date 2025-09-26
 */
@Tag(name = "Mapping", description = "Mapping")
@RestController
@RequestMapping("/mapping")
public class MappingCenterController {

    @Resource
    private MappingService mappingService;

    @PostMapping("/config")
    public Result<?> configMappingTable(@RequestBody MappingTableConfigVo mappingTableConfigVo) {
        mappingService.configMappingTable(mappingTableConfigVo);
        return  Result.success();
    }
}